Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move LinkTo component to a separate addon-links/react endpoint #2239

Merged
merged 3 commits into from
Nov 6, 2017

Conversation

Hypnosphi
Copy link
Member

Issue: #2096

What I did

Moved react/browser-specific stuff to a separate endpoint

How to test

Run crna-kitchen-sink

@tmeasday
Copy link
Member

tmeasday commented Nov 6, 2017

LGTM!

@shilman
Copy link
Member

shilman commented Nov 6, 2017

Isn't this a breaking change? Can we keep the old behavior & deprecate it until 4.0?

@Hypnosphi
Copy link
Member Author

Hypnosphi commented Nov 6, 2017

@shilman The feature was introduced only in prerelease, so we're free to change it. And the bug I fix here blocks storybook for RN from working

@Hypnosphi Hypnosphi requested a review from shilman November 6, 2017 12:39
@Hypnosphi Hypnosphi self-assigned this Nov 6, 2017
@codecov-io
Copy link

codecov-io commented Nov 6, 2017

Codecov Report

Merging #2239 into release/3.3 will decrease coverage by <.01%.
The diff coverage is 12.5%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release/3.3    #2239      +/-   ##
===============================================
- Coverage        22.63%   22.62%   -0.01%     
===============================================
  Files              344      346       +2     
  Lines             6763     6770       +7     
  Branches           890      905      +15     
===============================================
+ Hits              1531     1532       +1     
+ Misses            4578     4554      -24     
- Partials           654      684      +30
Impacted Files Coverage Δ
addons/links/src/react/components/link.js 16.66% <ø> (ø)
addons/links/src/react/index.js 0% <0%> (ø)
addons/links/react.js 0% <0%> (ø)
app/react/src/demo/Welcome.js 0% <0%> (ø) ⬆️
addons/links/src/index.js 55.55% <20%> (-44.45%) ⬇️
app/react/src/server/config/babel.js 0% <0%> (-100%) ⬇️
app/react/src/server/utils.js 0% <0%> (-53.58%) ⬇️
lib/components/src/highlight_button.js 0% <0%> (ø) ⬆️
...tories_panel/stories_tree/tree_decorators_utils.js 45.23% <0%> (ø) ⬆️
addons/viewport/src/components/RotateViewport.js 22.72% <0%> (ø) ⬆️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5574bd7...1b60f29. Read the comment docs.


storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button')} />);
storiesOf('Welcome', module).add('to Storybook', () => <Welcome showKind="Button" />);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to update these in the cli templates?

Copy link
Member Author

@Hypnosphi Hypnosphi Nov 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already updated in #1829. Actually I just did some copy-pasting from commented code in stories/index.js to partially restore the release/3.3 changes.

If you feel like it, you can sync the rest of the changes in another PR

Copy link
Member

@ndelangen ndelangen Nov 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has changed in #1829 not now. It’basically adding a usage of a new feature

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, well I'm OK with this change.

@ndelangen ndelangen merged commit a1a9671 into release/3.3 Nov 6, 2017
@ndelangen ndelangen deleted the fix-link-export branch November 6, 2017 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants